<%@ page import="ar.org.sstuyv.IIUUPrefactibilidadUrbanistica" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'IIUUPrefactibilidadUrbanistica.label', default: 'IIUUPrefactibilidadUrbanistica')}" />
		<title><g:message code="default.create.label" args="[entityName]" /></title>
			
<%--<jq:resources />--%>
<%--<jqui:resources />--%>
<%--<jqgrid:resources />--%>

<%--<script type="text/javascript">--%>
<%--			// Here we set a globally the altRows option--%>
<%--			jQuery.extend(jQuery.jgrid.defaults, { --%>
<%--				altRows: true,--%>
<%--				altclass: 'teams-alt-class'  --%>
<%--				});--%>
<%--</script>--%>


<%--<script type="text/javascript" src="//code.jquery.com/ui/1.10.3/jquery-ui.js"></script>--%>
<%--<link rel="stylesheet" type="text/css" href="//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">--%>
<%--<g:javascript src="/jquery-ui-1.10.3/ui/jquery-ui.js" />--%>
<%--<link rel="stylesheet" type="text/css" href="../css/smoothness.css">--%>


<%--<g:javascript src="/ajaxfileupload.js" />--%>
<%--<g:javascript src="sig/ui.comun.js" />--%>
<%--<g:javascript src="/sig/grillaNomenclaturaCompleta.js" />--%>
<%--<g:javascript src="/sig/toServer.js" />--%>
<%--<g:javascript src="/sig/iiuuPrefactibilidadUrbanistica.js" />--%>
<%--<g:javascript src="/sig/grillaPersonal.js" />--%>

<r:require module='IIUUPrefactibilidad'/>
 
<script type='text/javascript'>

$(document).ready(function(){
  pestanias();
  grilla();
  clickAddNomencla();
  clickGuardar();
  agregarSaltosTextarea(); 
  //$(".toServer").click(function(){toServer('infoDelTramite', 'saveAjax');}); 
});

function pestanias() {
	var alltabs = $('div.tab');
	  var tabs = $('#tabs');
	  alltabs.first().show();
	  tabs.find('li:first').addClass('on');
	  tabs.find('a').on('click', function() {
	    alltabs.hide();
	    tabs.find('li').removeClass('on');
	    $(this).parent().toggleClass('on');
	    var tabref = $(this).attr('rel');
	    $(tabref).fadeIn(500);
	    this.blur();
	    return false;
	  });
}

function grilla() {
	main = new sstuyv.main.ui.Grilla;
}
</script>
<%--<script src="/recursos/wfs-protocol-transactions_files/OpenLayers.js"></script>--%>
<%----%>
<%----%>
<%--<link rel="stylesheet" href="/recursos/wfs-protocol-transactions_files/style.css" type="text/css">--%>
<%--<link rel="stylesheet" href="/recursos/wfs-protocol-transactions_files/style_002.css" type="text/css">--%>
<%--<script src="/recursos/wfs-protocol-transactions_files/maps"></script>--%>
<%--<script src="/recursos/wfs-protocol-transactions_files/main.js" type="text/javascript"></script>--%>
<%--<style type="text/css">@media print{.gmnoprint{display:none}}@media screen{.gmnoscreen{display:none}}</style>--%>

<!--[if lte IE 6]>
    <style>
        .customEditingToolbar {
            width: 200px;
        }
    </style>
<![endif]-->   

<%--<script src="/recursos/wfs-protocol-transactions_files/wfs-protocol-transactions.js"></script>--%>
<%--<script src="/recursos/wfs-protocol-transactions_files/mod_dragmod_ctrapi.js" charset="UTF-8" type="text/javascript"></script>--%>
		


				
</head>

<body onload="init()">
		
		<div id="create-informesUrbanisticos" class="content scaffold-create" role="main">
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<g:hasErrors bean="${prefactibilidadUrbanisticaInstance}">
			<ul class="errors" role="alert">
				<g:eachError bean="${prefactibilidadUrbanisticaInstance}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
			</g:hasErrors>
			<g:form action="save" >
				<fieldset class="form">
					<g:render template="form"/>
				</fieldset>
					<div class="divBotonPestania">
					<input type="hidden" name="id" id="id" value="${IIUUPrefactibilidadUrbanisticaInstance.id}" />
					<input type="hidden" readonly="readonly" id="clase" value="IIUUPrefactibilidadUrbanistica">
					<button id="botonGuardar" type="button" modo="alta">Guardar</button>
					</div>
			</g:form>
		</div>
		 <script defer="defer" type="text/javascript">
		init();
      </script>	
	</body>
</html>
